package com.bill.service;

import com.bill.dao.BillsMapper;
import com.bill.pojo.Bill;
import com.bill.pojo.Bills;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
@Transactional
public class BillsServiceImpl implements BillsService {

    @Resource
    BillsMapper billsMapper;

    @Override
    public List<Bills> findBillsAll() {
        return billsMapper.findBillsAll();
    }

    @Override
    public List<Bill> findBill_typeAll() {
        return billsMapper.findBill_typeAll();
    }

    @Override
    public List<Bills> queryTypeTimeBills(int type_id, String startTime, String endTime) {
        return billsMapper.queryTypeTimeBills(type_id, startTime, endTime);
    }

    @Override
    public int insertBills(Bills bills) {
        return billsMapper.insertBills(bills);
    }
}
